<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Error</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class Error</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
													<a href="#sec-vars">Vars</a>
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The Nexista error system is Exception based and provides a method for calling  custom handler for each error type.</p>
<p class="description"><p>The extension class used by Nexista extends from the standard PHP5 Exception  class with added functionality. It aims to be self supporting meaning that try/catch  blocks do not need to be called.</p><p>Each place where an error might happen has the directive:  <div class="src-code"><ol><li><div class="src-line"><span class="src-id"><a href="../Nexista/Error.html">Error</a></span><span class="src-sym">::</span><a href="../Nexista/Error.html#methodinit">init</a><span class="src-sym">(</span><span class="src-str">'message'</span><span class="src-sym">,&nbsp;</span><span class="src-id">ERROR_CODE</span><span class="src-sym">,&nbsp;</span><span class="src-str">'optional&nbsp;handler'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
</ol></div>  When the error handling receives this call, it will verify if a handler has  been defined. If so, it will call the handler with the error and the code and  let it handle it. If no handler is specified, it will then see if the ERROR_CODE  is listed. The current standard error codes as NX_ERROR_FATAL (which halts the  script), NX_ERROR_WARNING and NX_ERROR_NOTICE. If the error code does is not  listed it will then throw the exception.</p><p>Each class or functionality group can have it's own error codes and handlers.  For example, a database class might have:  <div class="src-code"><ol><li><div class="src-line">&nbsp;<span class="src-key">if</span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-id">connectToDB</span><span class="src-sym">(</span><span class="src-sym">))</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../Nexista/Error.html">Error</a></span><span class="src-sym">::</span><a href="../Nexista/Error.html#methodinit">init</a><span class="src-sym">(</span><span class="src-str">'A&nbsp;DB&nbsp;connection&nbsp;could&nbsp;not&nbsp;be&nbsp;made'</span><span class="src-sym">,&nbsp;</span><span class="src-id">NX_ERROR_DB_CONNECT</span><span class="src-sym">,&nbsp;</span><span class="src-str">'errorHandler'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line">&nbsp;</div></li>
<li><div class="src-line">&nbsp;<span class="src-key">function&nbsp;</span><span class="src-id">errorHandler</span><span class="src-sym">(</span><span class="src-var">$exception</span><span class="src-sym">,&nbsp;</span><span class="src-var">$errorCode</span><span class="src-sym">)</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">switch</span><span class="src-sym">(</span><span class="src-var">$errorCode</span><span class="src-sym">)</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">case&nbsp;</span><span class="src-id">NX_ERROR_DB_CONNECT</span>:</div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...use&nbsp;<span class="src-id">alternate&nbsp;DB&nbsp;connection&nbsp;</span><span class="src-key">or&nbsp;</span><span class="src-id">retry</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">break</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">default</span>:</div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id">trow</span><span class="src-sym">(</span><span class="src-var">$e</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">break</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><span class="src-sym">}</span></div></li>
</ol></div>  In the case above, the error code indicated will cause an attempt to restore  the connection.</p><p>The error system does not log or display errors by default. Observers need  to be setup in the prepend file in order to do so:  <div class="src-code"><ol><li><div class="src-line"><span class="src-id"><a href="../Nexista/Error.html">Error</a></span><span class="src-sym">::</span><a href="../Nexista/Error.html#methodaddObserver">addObserver</a><span class="src-sym">(</span><span class="src-str">'display'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'observerDisplay'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;</div></li>
<li><div class="src-line">&nbsp;<span class="src-key">function&nbsp;</span><span class="src-id">observerDisplay</span><span class="src-sym">(</span><span class="src-var">$e</span><span class="src-sym">)</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//display&nbsp;the&nbsp;error</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$e</span>-<span class="src-sym">&amp;</span><span class="src-id">gt</span><span class="src-sym">;</span><a href="../Nexista/Error.html#methodtoHtml">toHtml</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;</div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//do&nbsp;additional&nbsp;stuff&nbsp;such&nbsp;as&nbsp;log&nbsp;error,&nbsp;email&nbsp;webmaster,&nbsp;etc...&nbsp;as&nbsp;desired</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-sym">}</span></div></li>
</ol></div>  <strong>Important!</strong> the Error::toHtml() method displays a lot of information  that could treaten the security of the application. Be sure to employ proper  security measures such as showing an error message with a link to a role secure  popup page which calls the function.</p><p>Credits: This class was inspired by the PEAR_Exception class</p></p>
		<p class="notes">
			Located in <a class="field" href="_kernel---error.php.html">/kernel/error.php</a> (line <span class="field">83</span>)
		</p>
		
				
		<pre>Exception
   |
   --Error</pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																		<a href="#sec-vars">Vars</a>
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																				<div class="method-definition">
					static 						<span class="method-result">void</span>
										<a href="#addObserver" title="details" class="method-name">addObserver</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$callback</span>)
									</div>
																																																								<div class="method-definition">
					static 						<span class="method-result">void</span>
										<a href="#init" title="details" class="method-name">init</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$text</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$code</span> = <span class="var-default">null</span>], [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$handler</span> = <span class="var-default">null</span>])
									</div>
																																<div class="method-definition">
					static 						<span class="method-result">void</span>
										<a href="#registerDefaultHandler" title="details" class="method-name">registerDefaultHandler</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$handler</span>)
									</div>
																<div class="method-definition">
					static 						<span class="method-result">void</span>
										<a href="#removeObserver" title="details" class="method-name">removeObserver</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>)
									</div>
																																
												<div class="method-definition">
											<span class="method-result">Error</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$message</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$code</span> = <span class="var-default">null</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$handler</span> = <span class="var-default">null</span>])
									</div>
																								<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#disableObservers" title="details" class="method-name">disableObservers</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span> = <span class="var-default">null</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#enableObservers" title="details" class="method-name">enableObservers</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span> = <span class="var-default">null</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getErrorClass" title="details" class="method-name">getErrorClass</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getErrorMethod" title="details" class="method-name">getErrorMethod</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getTraceSafe" title="details" class="method-name">getTraceSafe</a>
										()
									</div>
																								<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#outputXml" title="details" class="method-name">outputXml</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#processHandler" title="details" class="method-name">processHandler</a>
										()
									</div>
																																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#toHtml" title="details" class="method-name">toHtml</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#toText" title="details" class="method-name">toText</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#triggerObservers" title="details" class="method-name">triggerObservers</a>
										()
									</div>
								</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
										<h4>Inherited Variables</h4>
				<A NAME='inherited_vars'><!-- --></A>
									<p>Inherited from <span class="classname">Exception (Internal Class)</span></p>
					<blockquote>
													<span class="var-title">
								<span class="var-name">$code</span><br>
							</span>
													<span class="var-title">
								<span class="var-name">$file</span><br>
							</span>
													<span class="var-title">
								<span class="var-name">$line</span><br>
							</span>
													<span class="var-title">
								<span class="var-name">$message</span><br>
							</span>
													<span class="var-title">
								<span class="var-name">$string</span><br>
							</span>
													<span class="var-title">
								<span class="var-name">$trace</span><br>
							</span>
											</blockquote> 
										
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-vars">Vars</a>
																	<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodaddObserver" id="addObserver"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method addObserver</span> (line <span class="line-number">179</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Adds an observer function</p>
<p class="description"><p>All registered observers are called when an exception occurs  and can be used to display,log, notify.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">void</span>
		<span class="method-name">
			addObserver
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$callback</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$name</span><span class="var-description">: name of the observer.</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$callback</span><span class="var-description">: a valid php callback handler</span>			</li>
				</ul>
		
			
	</div>
<a name="methodinit" id="init"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method init</span> (line <span class="line-number">162</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Inits a new Exception with optional handler</p>
<p class="description"><p>This static method is called instead of a throw command.  It instanciates a new execption and allows for an optional  handler to be defined to handle the exception</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">void</span>
		<span class="method-name">
			init
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$text</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$code</span> = <span class="var-default">null</span>], [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$handler</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$text</span><span class="var-description">: error message</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$code</span><span class="var-description">: error code</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$handler</span><span class="var-description">: a valid php callback handler</span>			</li>
				</ul>
		
			
	</div>
<a name="methodregisterDefaultHandler" id="registerDefaultHandler"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method registerDefaultHandler</span> (line <span class="line-number">410</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Registers a function to be called on error if no custom handlers are defined</p>
<p class="description"><p>This method allows a callable function to be called for standard errors  (i.e. NX_ERROR_FATAL, NX_ERROR_WARNING) to override the default actions.  Note that if a custome handler for an error is defined in the Error:init()  arguments, this function will never be called.  This function should accept 1 argument: a reference to the current Error object.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">void</span>
		<span class="method-name">
			registerDefaultHandler
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$handler</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$handler</span><span class="var-description">: a function or an array of class=&gt;method</span>			</li>
				</ul>
		
			
	</div>
<a name="methodremoveObserver" id="removeObserver"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method removeObserver</span> (line <span class="line-number">192</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Removes an observer</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">void</span>
		<span class="method-name">
			removeObserver
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$name</span><span class="var-description">: observer name</span>			</li>
				</ul>
		
			
	</div>

<a name="method__construct" id="__construct"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">119</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Instantiates a new Nexista Exception</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Error</span>
		<span class="method-name">
			__construct
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$message</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$code</span> = <span class="var-default">null</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$handler</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$message</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$code</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$handler</span>			</li>
				</ul>
		
			<hr class="separator" />
		<div class="notes">Redefinition of:</div>
		<dl>
			<dt>Exception::constructor __construct ( [$message = ], [$code = ] )</dt>
					</dl>
			
	</div>
<a name="methoddisableObservers" id="disableObservers"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">disableObservers</span> (line <span class="line-number">222</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Disable all or one observer</p>
<p class="description"><p>When an external handler is used, it may be desirable not  to call the observer(s). This method can be used to do so.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			disableObservers
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$name</span><span class="var-description">: (optional) observer name. If no name is given,  then all observers will be disabled</span>			</li>
				</ul>
		
			
	</div>
<a name="methodenableObservers" id="enableObservers"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">enableObservers</span> (line <span class="line-number">237</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Enable previously disabled observer(s)</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			enableObservers
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$name</span><span class="var-description">: (optional) observer name. If no name is given,  then all observers will be enabled.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetErrorClass" id="getErrorClass"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getErrorClass</span> (line <span class="line-number">289</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns class where exception occured</p>
	<ul class="tags">
				<li><span class="field">return:</span> error class</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getErrorClass
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetErrorMethod" id="getErrorMethod"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getErrorMethod</span> (line <span class="line-number">300</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns method where exception occured</p>
	<ul class="tags">
				<li><span class="field">return:</span> error function</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getErrorMethod
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetTraceSafe" id="getTraceSafe"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getTraceSafe</span> (line <span class="line-number">272</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns error trace</p>
	<ul class="tags">
				<li><span class="field">return:</span> error backtrace</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getTraceSafe
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodoutputXml" id="outputXml"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">outputXml</span> (line <span class="line-number">312</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Outputs error as XML</p>
	<ul class="tags">
				<li><span class="field">return:</span> XML error</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			outputXml
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodprocessHandler" id="processHandler"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">processHandler</span> (line <span class="line-number">201</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Runs a user provided function to deal with this exception</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			processHandler
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodtoHtml" id="toHtml"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">toHtml</span> (line <span class="line-number">364</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Transforms and outputs XML error with XSL</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			toHtml
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodtoText" id="toText"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">toText</span> (line <span class="line-number">392</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Outputs error as string</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			toText
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodtriggerObservers" id="triggerObservers"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">triggerObservers</span> (line <span class="line-number">254</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Activate observers</p>
<p class="description"><p>This method is triggered by the Error::init() method when no handlers  are defined and will call all registered observers. It is up to the  handler, if defined, to call this method.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			triggerObservers
		</span>
				()
			</div>
	
		
			
	</div>
							<h4>Inherited Methods</h4>
				<a name='inherited_methods'><!-- --></a>	
									<!-- =========== Summary =========== -->
					<p>Inherited From <span class="classname">Exception (Internal Class)</span></p>
					<blockquote>
													<span class="method-name">constructor __construct ( [$message = ], [$code = ] )</span><br>
													<span class="method-name">getCode (  )</span><br>
													<span class="method-name">getFile (  )</span><br>
													<span class="method-name">getLine (  )</span><br>
													<span class="method-name">getMessage (  )</span><br>
													<span class="method-name">getTrace (  )</span><br>
													<span class="method-name">getTraceAsString (  )</span><br>
													<span class="method-name">__clone (  )</span><br>
													<span class="method-name">__toString (  )</span><br>
											</blockquote>
										
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Thu, 02 Aug 2007 17:35:18 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.2</a>
	</p>
	</div></body>
</html>